package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Date;
@Getter@Setter@ToString
public class UserChat extends BaseDomain{
    //当前登录用户
    private User myUser;
    //聊天的内容
    private String message;
    //接收消息的用户
    private User acceptUser;
    //聊天记录时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    //总条数
    private Long totalCount;

}